*{
  padding: 0;
  margin: 0;
  list-style: none;
  outline: none;
  border: none;
}

a{
  color: white;
  text-decoration: none;
}

html,body {
  width: 100vw;
  height: 100%;
  color: #575757;
  font-size: 12px;
  overflow: auto;
  position: relative;
}


/* 头部搜索区 */
header {
  /* width: 100%; */
  /* border: 1px solid blue; */
  padding: 24px 20px 80px 20px;
  background: linear-gradient(to right, #EE744F, #F72C2C);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .search {
  width: 80%;
  height: 30px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  -webkit-border-radius: 14px;
  -moz-border-radius: 14px;
  -ms-border-radius: 14px;
  -o-border-radius: 14px;
}
header .search img {
  width: 18px;
  height: 18px;
  margin-left: 10px;
}
header .search input {
  width: 80%;
  height: 25px;
  padding: 0 5px;
}

header>img {
  width: 20px;
  height: 24px;
}



/* 聊天区 */
main {
  width: 100%;
  height: calc(100% - 54px - 134px);
  /* border: 1px solid black; */
}
main .msg {
  /*border: 1px solid black;*/
  width: 92%;
  height: calc(100% + 54px);
  margin: 0 auto;
  position: relative;
  top: -56px;
  left: 0;
  background-color: #fff;
  border-radius: 12px 12px 0 0;
  -webkit-border-radius: 12px 12px 0 0;
  -moz-border-radius: 12px 12px 0 0;
  -ms-border-radius: 12px 12px 0 0;
  -o-border-radius: 12px 12px 0 0;
  box-shadow: 1px 1px 1px rgb(221, 221, 221),-1px 0 1px rgb(221, 221, 221);
}


.msg .service {
  /* border: 1px solid black; */
  padding: 14px 12px 5px 7px;
}
.msg .service>p {
  padding-left: 15px;
  position: relative;
}
.msg .service>p::before {
  content: '';
  width: 4px;
  height: 14px;
  background: #E31C19;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 2px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  -ms-border-radius: 2px;
  -o-border-radius: 2px;
}
.msg .service .info {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tx{
  position: relative;
}
.dot{
  position: absolute;
  left: -1px;
  top: -10px;
  width: 22px;
  height: 18px;
  text-align: center;
  line-height: 16px;
  background-color: #FF6F3F;
  border-radius: 50%;
  color: white;
  font-size: 10px;
}
.dot2{
  position: absolute;
  left: -5px;
  top: -10px;
  width: 22px;
  height: 18px;
  text-align: center;
  line-height: 16px;
  background-color: #FF6F3F;
  border-radius: 50%;
  color: white;
  font-size: 10px;
}
.msg .service .info .tx img {
  width: 46px;
  height: 46px;
}
.msg .service .info .all {
  width: 60%;
  height: 46px;
}


.msg .service .info .article img {
  width: 46px;
  height: 46px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}


.msg .user {
  padding: 0px 12px 12px  7px;
  height: 100vh;
  overflow: auto;
}



main .msg .user::-webkit-scrollbar {
  display: none;
}

.msg .user>p {
  padding-left: 15px;
  position: relative;
}
.msg .user>p::before {
  content: '';
  width: 4px;
  height: 14px;
  background: #E31C19;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 2px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  -ms-border-radius: 2px;
  -o-border-radius: 2px;
}

.msg .user .info {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  padding: 5px 0;
  display: flex;
  align-items: center;
  position: relative;
}

.msg .user .info>img {
  position: absolute;
  right: 0;
  width: 20px; 
}

.msg .user .info .tx img {
  width: 46px;
  height: 46px;
}
.msg .user .info .all {
  width: 60%;
  height: 46px;
  padding-left: 10px;
}

.all p{
  font-size: 10px;
  color: #A1A1A1;
  
}

.all p:nth-of-type(1){
  font-size: 12px;
  color: #575757;
}
.all p:nth-of-type(2) {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user{
  height: 100vh;
}

/* 媒体查询 */
@media screen and (min-width: 500px) {
  body {
    margin: 100px auto 0;
    width: 375px;
    height: 700px;
    border: 1px solid grey;
    z-index: 999;
  }

  footer {
    position: relative;
    bottom: 0;
    left: 0%;
    width: 373px;
    z-index: 999;
  }
}